package com.merugu.school.hibernate;

/**
 * Created by IntelliJ IDEA.
 * User: raveendramerugu
 * Date: Dec 5, 2010
 * Time: 8:12:57 PM
 * To change this template use File | Settings | File Templates.
 */

import java.util.Set;

/**
 * Class represents the user of the system.
 */
public class User {

    private Long id;
    private String userName;
    private String password;
    private String firstName;
    private String lastName;
    private UserRole role;
    private Set<Student> students;


    public User() {
    }

    public User(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }



    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public UserRole getRole() {
        return role;
    }

    public void setRole(UserRole role) {
        this.role = role;
    }

    public Set<Student> getStudents() {
        return students;
    }

    public void setStudents(Set<Student> students) {
        this.students = students;
    }
}
